$(function(){
    
    
    
    
})

function obtenerImc(idninio){
    alert(idninio+" ok");
            url = 'ninio/datosAntropomorficos/ajaxObtenerReporteIMC';

    $.ajax({
            type: "GET", //GET or POST or PUT or DELETE verb
//        url: 'listaAreas', // Location of the service antes
            url: baseUrl + url,
            data: {idNinio: idninio}, //Data sent to server
            //contentType: "",  // content type sent to server
            dataType: "json", //Expected data format from server
            //dataType: "text",  //Expected data format from server

            //processdata: true,  //True or False
            success: function(info) {//On Successful service call
//                console.log(info.fechaNacimiento);
//                $('#DatosAntropomorficos_edad').val((edad(info.fechaNacimiento)));

            },
            error: function(info) {//On Successful service call
                alert("en mantenimiento");
            }

//                    error: ServiceFailed // When Service call fails
        });
    
    
}